package exceptions;

public class Basic {
	public static void main(String args[]) throws MyException {
		m1();
	}

	public static void m1() throws MyException {    //MyException is checked exception
		try {
			throw new MyException();
		} catch (MyException e) {
			System.out.println("User Exception Occured ...");
			e.printStackTrace();
			throw new NullPointerException();
		}
	}
}
